home *** CD-ROM | disk | FTP | other *** search
- -- card: 23030 from stack: in.3r
- -- bmap block id: 0
- -- flags: 0000
- -- background id: 2202
- -- name: daysBetweenDates
- ----- HyperTalk script -----
- function DaysBetweenDates startDate, endDate
- convert startDate to seconds
- convert endDate to seconds
- return ((endDate - startDate)/(60*60*24))
- end daysBetweenDates
-
-
-
- -- part contents for background part 10
- ----- text -----
- 6
-
- -- part contents for background part 3
- ----- text -----
- daysBetweenDates
-
- -- part contents for background part 2
- ----- text -----
- --
- -- subtracts endDate from startDate and returns days
- -- note same days return 0
- -- The dates should be in the form ("January 11,1987") or ("1/11/87")
- -- The function call will look like this:
- -- DaysBetweenDates("January 11, 1987","March 15, 1987") or
- -- DaysBetweenDates("1/11/87","3/15/87")
- --
-
- function DaysBetweenDates startDate, endDate
- convert startDate to seconds
- convert endDate to seconds
- return ((endDate - startDate)/(60*60*24))
- end daysBetweenDates
-
- --
- -- Original function provided 12/87 by Dallas E. Weaver, Ph.D.
- -- Modified 12/87 by Steve Drazga
- --
-
- -- part contents for background part 19
- ----- text -----
- Functions